package edu.njust.cma.mapper;

import edu.njust.cma.pojo.Project;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface QualityMapper {
    //1. 创建检测项目
    @Insert("insert into projects(name,quality_director_id,lab_director_id,experiment_evidence,creation_time) " +
            "values(#{name},#{qualityDirectorId},#{labDirectorId},#{experimentEvidence},#{creationTime})")
    Integer createPro(Project project);

    @Select("select max(id) from projects")
    Integer getLastProjectId();
}
